package com.ruoyi.system.service.project.impl;

import java.util.List;

import com.ruoyi.system.domain.project.book.BookTeacher;
import com.ruoyi.system.mapper.project.BookTeacherMapper;
import com.ruoyi.system.service.project.IBookTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 著作教材教师Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-28
 */
@Service
public class BookTeacherServiceImpl implements IBookTeacherService
{
    @Autowired
    private BookTeacherMapper bookTeacherMapper;

    /**
     * 查询著作教材教师
     * 
     * @param id 著作教材教师主键
     * @return 著作教材教师
     */
    @Override
    public BookTeacher selectBookTeacherById(Long id)
    {
        return bookTeacherMapper.selectBookTeacherById(id);
    }

    /**
     * 查询著作教材教师列表
     * 
     * @param bookTeacher 著作教材教师
     * @return 著作教材教师
     */
    @Override
    public List<BookTeacher> selectBookTeacherList(BookTeacher bookTeacher)
    {
        return bookTeacherMapper.selectBookTeacherList(bookTeacher);
    }

    /**
     * 新增著作教材教师
     * 
     * @param bookTeacher 著作教材教师
     * @return 结果
     */
    @Override
    public int insertBookTeacher(BookTeacher bookTeacher)
    {
        return bookTeacherMapper.insertBookTeacher(bookTeacher);
    }

    /**
     * 修改著作教材教师
     * 
     * @param bookTeacher 著作教材教师
     * @return 结果
     */
    @Override
    public int updateBookTeacher(BookTeacher bookTeacher)
    {
        return bookTeacherMapper.updateBookTeacher(bookTeacher);
    }

    /**
     * 批量删除著作教材教师
     * 
     * @param ids 需要删除的著作教材教师主键
     * @return 结果
     */
    @Override
    public int deleteBookTeacherByIds(Long[] ids)
    {
        return bookTeacherMapper.deleteBookTeacherByIds(ids);
    }

    /**
     * 删除著作教材教师信息
     * 
     * @param id 著作教材教师主键
     * @return 结果
     */
    @Override
    public int deleteBookTeacherById(Long id)
    {
        return bookTeacherMapper.deleteBookTeacherById(id);
    }
}
